<?php
require_once("../config.php");
require_once("common_parameters.php");

$id = intval($_GET['id']);
$t = intval($_GET['t']);
if($t == 0){
	echo "<script>alert('栏目分类号码不正确!');</script>";
	echo "<script>location.href = './list.php?t=1';</script>";
	exit;
}

$paramInfo = $paramArray[$t];

//$sql = "delete from ".$paramInfo['tableName']." where id = '".$id."' limit 1";
$sql = "update ".$paramInfo['tableName']." set status = '0' where id = '".$id."' limit 1";
$dsql->ExecuteNoneQuery($sql);

echo "<script>alert('删除成功!');</script>";
echo "<script>location.href = 'list.php?t=".$t."';</script>";
?>